package jaux.message.codec;

import jaux.message.codec.utils.BitUtils;

public class BitsMessage {

	int[] bits;
	
	
	public BitsMessage(int[] bits) {
		this.bits = bits;
	}

	public int toInt(boolean sign) {
		return BitUtils.convertBitArrayToInt(this.bits, sign);
	}
	
	
	public int[] getBits() {
		return bits;
	}


	
	public void setBits(int[] bits) {
		this.bits = bits;
	}
}
